export default function useGetSystemConfig() {
  // 获取移动至、另存到的目标目录
  const getSaveTargetDir = async (): Promise<string> => {
    let targetDir = localStorage.getItem('ele-target-dir')
    if (!targetDir) {
      targetDir = await window.api.getAppSaveDir()
      localStorage.setItem('ele-target-dir', targetDir)
    }

    return targetDir
  }

  return {
    getSaveTargetDir
  }
}
